using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreData;
using Services;
using Helper;
namespace ActionServices
{

    public interface IStock_VoucherOutDetailActionService:BaseActionService
    {
        long Save(object _model);
        IList<CoreData.Stock_VoucherOutDetail> GetListByLINQ(Func<CoreData.Stock_VoucherOutDetail, Boolean> _where);
        CoreData.Stock_VoucherOutDetail GetOneByLINQ(Func<CoreData.Stock_VoucherOutDetail, Boolean> _where);
        bool Delete(object _model);
        IList<CoreData.Stock_VoucherOutDetail> GetListVODByPID(long _PID);
    }

    public partial class Stock_VoucherOutDetailActionService:IStock_VoucherOutDetailActionService
    {
       Stock_VoucherOutDetailService Service;

       public Stock_VoucherOutDetailActionService()
       {
           Service = new Stock_VoucherOutDetailService();
       }

       #region Main Method

       public virtual long Save(object _model)
       {
           return Service.Save(_model);
       }

       public virtual object GetByID(long _id)
       {
           return Service.GetByID(_id);
       }

       public virtual object GetList()
       {
           return Service.GetList();
       }

       public virtual IList<CoreData.Stock_VoucherOutDetail> GetListByLINQ(Func<CoreData.Stock_VoucherOutDetail, Boolean> _where)
       {
           return Service.GetListByLINQ(_where);
       }

       public virtual CoreData.Stock_VoucherOutDetail GetOneByLINQ(Func<CoreData.Stock_VoucherOutDetail, Boolean> _where)
       {
           return Service.GetOneByLINQ(_where);
       }

       public virtual object GetList(string _searchstring)
       {
           return Service.GetList(_searchstring);
       }

       public virtual bool Delete(object _model)
       {
           return Service.Delete(_model);
       }

       #endregion


        #region Other Method
       public virtual IList<CoreData.Stock_VoucherOutDetail> GetListVODByPID(long _PID)
       {
           return Service.GetListVODByPID(_PID);
       }
        #endregion

    }
         
}
